package com.dongchao.authserver.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @author Mr.dongchao
 * @date 2018-08-27
 **/
@RestController
public class HelloController {
    @RequestMapping("/user")
    public Principal user(Principal principal) {
        return principal;
    }
}
